package com.dj.mingkong.common.util;

import org.springframework.util.PropertyPlaceholderHelper;

import java.util.Properties;

public enum PlaceholderUtil {
    ;
    private static PropertyPlaceholderHelper helper = new PropertyPlaceholderHelper("${", "}", ":", false);

    private PlaceholderUtil() {
    }

    public static String replacePlaceholders(String value, Properties properties) {
        return helper.replacePlaceholders(value, properties);
    }
}
